﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ProjectForm.ascx.cs"
    Inherits="Application.ProjectForm" %>
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
    <ContentTemplate>
        <asp:LinkButton ID="addProject" class="ShowEditForm" runat="server" OnClick='addProject_Click'>
         Новый проект
        </asp:LinkButton>
        <asp:Panel ID="ProjectFormDiv" class="EditForm" Visible="false" runat="server">
            <div class="EditFormTitle">
                Новый проект
            </div>
            <asp:ImageButton class="EditFormClose" src="../images/delete.png" ID="ProjectFormClose"
                runat="server" OnClick="ProjectFormClose_Click" />
            <table>
                <tr>
                    <td>
                        Наименование:
                    </td>
                    <td>
                        <asp:TextBox ID="NewProjectName" runat="server" MaxLength="255"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td>
                        Дата начала:
                    </td>
                    <td>
                        <asp:TextBox ID="NewProjectStartDate" runat="server"></asp:TextBox>
                        <AJAX:CalendarExtender ID="NewProjectStartDateCalendar" TargetControlID="NewProjectStartDate"
                            runat="server" Format="yyyy.MM.d" Enabled="true">
                        </AJAX:CalendarExtender>
                    </td>
                </tr>
                <tr>
                    <td>
                        Дата окончания:
                    </td>
                    <td>
                        <asp:TextBox ID="NewProjectEndDate" runat="server"></asp:TextBox>
                        <AJAX:CalendarExtender ID="NewProjectEndDateCalendar" TargetControlID="NewProjectEndDate"
                            runat="server" Format="yyyy.MM.d">
                        </AJAX:CalendarExtender>
                    </td>
                </tr>
                <tr>
                    <td colspan="2">
                        <%-- <input type="button" id="btAddProject"  value="Создать" />--%>
                        <asp:Button ID="btAddProject" Text="Создать" runat="server" OnClick="btAddProject_Click"
                            Class="SubmitEditForm" />
                    </td>
                </tr>
                <asp:Label ID="ProjectId" Visible="false" Enabled="false" runat="server"></asp:Label>
            </table>
        </asp:Panel>
    </ContentTemplate>
</asp:UpdatePanel>
